package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover_comment;
import cn.com.api.mapper.ApiU_discover_commentMapper;
import cn.com.api.service.ApiU_discover_commentService;
import cn.com.api.service.impl.base.U_discover_commentServiceImplBase;
import cn.com.util.PageInfo;

/**
 * 
 **/
@Service
public class ApiU_discover_commentServiceImpl extends U_discover_commentServiceImplBase implements ApiU_discover_commentService{
	@Autowired
	private ApiU_discover_commentMapper apiU_discover_commentMapper;
    
	
     	//新增对象后返回记录ID
    public int U_discover_commentInsertion(ApiU_discover_comment u_discover_comment){
        return this.apiU_discover_commentMapper.U_discover_commentInsertion(u_discover_comment);
    }


	@Override
	public List<ApiU_discover_comment> findU_discover_comments_condition(
			Map<String, Object> param, PageInfo pageInfo) {
		
		return apiU_discover_commentMapper.findU_discover_comments_condition(param, pageInfo);
	}


	@Override
	public void updateU_discover_comment_count(String comment_id) {
		
		apiU_discover_commentMapper.updateU_discover_comment_count(comment_id);
		
	}
 
}


